<!doctype html>
<html lang="en">
<head>
	<title>添加栏目</title>
	<script type="text/javascript" src="__STATIC__/hdjs/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__STATIC__/hdjs/hdjs.min.js"></script>
<!--表单验证Start-->
<script>
    $(function () {
        $('#form1').validate({
            cname: {
                rule: {
                    required: true
                },
                error: {
                    required: '栏目名称不能为空'
                },
                message: '请输入栏目名称',
                success: '验证通过'
            },
        })
    })
</script>
<!--表单验证End-->
</head>
<body>
<div class="hd-menu-list">
	<ul>
		 <li><a href="{|U:'index'}" > 栏目列表 </a></li>
		 <li class="active"><a href="#"> 添加栏目</a> </li>
		 <li><a href="#"> 更新栏目缓存 </a></li>
	</ul>
</div>
<form id="form1" method='post' action="">
	<input type='hidden' name='pid' value='{$hd.get.pid|default:0}' />
	<table class='hd-table hd-table-form hd-form'>
		<tr>
			<th class='hd-w100'>栏目名称</th>
			<td>
				<input type='text' name='cname' class='hd-w200 hd-h30'/>
			</td>
		</tr>
		<tr>
			<th class='hd-w100'>排序</th>
			<td>
				<input type='text' name='sort' value="100" class='hd-w200 hd-h30'/>
			</td>
		</tr>
	</table>
	<div style='text-align:center'>
		<input type='submit' value='确定' class='hd-btn hd-btn-primary hd-btn-sm'/>
	</div>
</form>
</body>
</html>
